/*异步读取*/
var fs=require("fs");
fs.readFile("./index.txt",function (err,data) {
    if(err){
        return console.log(err)
    }
    console.log(data.toString())
});
console.log("程序执行完毕");
/*异步读取*/
/*同步读取*/
/*var fs=require("fs");
var data=fs.readFileSync("./index.txt");
console.log(data.toString());
console.log("程序执行完毕");*/
/*同步读取*/


